package com.screenworker.compactmvc.examples.flex.controller
{
	import com.screenworker.compactmvc.examples.flex.model.RemotingModel;
	import com.screenworker.compactmvc.interfaces.ICommand;
	import com.screenworker.compactmvc.patterns.Command;
	import com.screenworker.compactmvc.patterns.Controller;
	import com.screenworker.compactmvc.vo.NoteVO;

	public class GetDescriptonCommand extends Command implements ICommand
	{
		public function GetDescriptonCommand(controller:Controller)
		{
			super(controller);
		}
		
		override public function execute(note:NoteVO):void
		{
			var remotingModel:RemotingModel = retrieveModel(RemotingModel.NAME) as RemotingModel
			remotingModel.getDescription( String(note.data));
		}
		
	}
}